﻿//
// Created: 2018/11/4
// Author: chenqiang
//
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xproject.Framework.Core;
using System.ComponentModel.DataAnnotations.Schema;

namespace Model.Finance
{
    public class  AccountBalance:IEntity
    {

        ///<summary>
        ///
        ///<summary>
       [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public long BalanceID { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string UserId  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public DateTime CreateTime  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public decimal BalanceMoney  { get; set; } 
       ///<summary>
       /// 0 支付/消费 1 退款  2提成
       ///<summary>
       public int BuinessCode  { get; set; } 
       ///<summary>
       ///机构代码 0 微信 1 支付宝 2 银联 3 线下
       ///<summary>
       public int? OrgaCode  { get; set; } 
       ///<summary>
       ///关系ID
       ///<summary>
       public string RelationId  { get; set; } 
         
        public string AccountBalanceCode { get; set; }

       [NotMapped]
        public long Id { get; set; }

        [NotMapped]
        public EntityState EntityState { get; set; }

        public int CompareTo(object obj)
        {
            throw new NotImplementedException();
        }
    }
}